package cn.yunhe.crm.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.yunhe.crm.dao.SysLogMapper;
import cn.yunhe.crm.entity.SysLog;

@Service("syslogService")
public class SysLogService {

	@Autowired
	private SysLogMapper syslogmapper;
	
	public void setSyslogmapper(SysLogMapper syslogmapper) {
		this.syslogmapper = syslogmapper;
	}

	public List<SysLog> getAll() {
		
		return syslogmapper.getAll();
	}

	public void add(SysLog syslog) {
		
		syslogmapper.add(syslog);
	}

	public void update(SysLog syslog) {

		syslogmapper.update(syslog);
		
	}
	
}
